import Mock from 'mockjs'
import homeApi from './mockServeData/home'
import permissionApi from './mockServeData/permission'

// 拦截接口
// Mock.mock(/home\/getData/, function(){
//     console.log('被拦截')
// })
 Mock.mock('/api/home/getData', 'get', homeApi.getStatisticalData)


 Mock.mock(/permission\/getMenu/, 'post', permissionApi.getMenu)

// 设置延时
Mock.setup({
    timeout: '200-600'
})
